home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / tcombo.exe / TSINPUTL.H < prev   
C/C++ Source or Header  |  1992-11-18  |  2KB  |  55 lines

  1. /*************************************************************************/
  2. /*                                                                       */
  3. /* TSINPUTL.H                                                            */
  4. /*                                                                       */
  5. /* Copyright (c) 1992, Vincent J. Dentice                                */
  6. /* All rights reserved                                                   */
  7. /*                                                                       */
  8. /*                                                                       */
  9. /*   Date    Prg  Ver  Description                                       */
  10. /* --------  ---  ---  ------------------------------------------------- */
  11. /* 09/30/92  VJD  0.1  Initial module definition.                        */
  12. /* 11/16/92  VJD  0.2  Added streamability to the TComboBox classes.     */
  13. /*                     Rewrote header files to behave like original      */
  14. /*                     Turbo Vision header files.                        */
  15. /*                                                                       */
  16. /*************************************************************************/
  17.  
  18. #define Uses_TCollection
  19. #define Uses_TInputLine
  20. #include <tv.h>
  21.  
  22.  
  23. #if defined( Uses_TStaticInputLine ) && !defined( __TStaticInputLine )
  24. #define __TStaticInputLine
  25.  
  26.  
  27. class TStaticInputLine : public TInputLine {
  28.    protected:
  29.       TCollection *list;
  30.  
  31.       void *getNextMatch(char);
  32.  
  33.    public:
  34.       TStaticInputLine(const TRect&, int, TCollection *aList);
  35.  
  36.       virtual void handleEvent(TEvent& event);
  37.       virtual void newList(TCollection *aList);
  38.  
  39.    private:
  40.       virtual const char *streamableName() const
  41.      { return name; }
  42.  
  43.    protected:
  44.       TStaticInputLine(StreamableInit);
  45.       virtual void write(opstream&);
  46.       virtual void *read(ipstream&);
  47.  
  48.    public:
  49.       static const char * const near name;
  50.       static TStreamable *build();
  51. };
  52.  
  53.  
  54. #endif
  55.